//
//  RoomButtoms.m
//  MooreDoll
//
//  Created by Joe on 2014/12/22.
//  Copyright (c) 2014年 Tank. All rights reserved.
//

#import "RoomButtoms.h"

@implementation RoomButtoms

// for roomButtomsMooreDoll.xib
#define A_RECORD        1001
#define A_MUSIC         1002
#define A_CLOCK         1003
#define A_CLOUD         1004

// for roomButtomsFriend.xib
#define B_RECORD        2001
#define B_MUSIC         2002
#define B_SEND_MSG      2003




-(IBAction)buttonPress:(UIButton *)sender
{
    if (sender.tag == A_RECORD || sender.tag == B_RECORD)
    {
        [self.delegate doButtonEventWithIdentify:@"Record"];
    }
    else if (sender.tag == A_MUSIC || sender.tag == B_MUSIC)
    {
        [self.delegate doButtonEventWithIdentify:@"Music"];
    }
    else if (sender.tag == A_CLOCK)
    {
        [self.delegate doButtonEventWithIdentify:@"Clock"];
    }
    else if (sender.tag == A_CLOUD)
    {
        [self.delegate doButtonEventWithIdentify:@"Cloud"];
    }
    else if (sender.tag == B_SEND_MSG)
    {
        [self.delegate doButtonEventWithIdentify:@"MessageSend"];
    }
    
}


@end
